<?php
session_start();
require_once '../../rutas.php';
require_once CLASES.'/model.php';
require DB;

extract($_POST);
$model=new model();
$r="true";
abrirConexion();

if($model->delete("cursos", "id", $id)){
    echo "true";
}else{
    echo "false";
}

?>
